home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / gnu / gnulib / dkbtrace / pbmplus / source / pgm / makefile < prev    next >
Encoding:
Makefile  |  1992-08-05  |  2.1 KB  |  74 lines

  1. # Makefile for pgm tools.
  2. #
  3. # Copyright (C) 1989, 1991 by Jef Poskanzer.
  4. #
  5. # Permission to use, copy, modify, and distribute this software and its
  6. # documentation for any purpose and without fee is hereby granted, provided
  7. # that the above copyright notice appear in all copies and that both that
  8. # copyright notice and this permission notice appear in supporting
  9. # documentation.  This software is provided "as is" without express or
  10. # implied warranty.
  11.  
  12. # Default values, usually overridden by top-level Makefile.
  13. CC =                icc
  14. CFLAGS =            -Sm -D__STDC__ -Q -Ti -Gd
  15. RGBDEF =
  16. TIFFDEF =        -DLIBTIFF
  17. LDFLAGS =        /pm:vio
  18. OBJ =                .obj
  19. EXE =                .exe
  20. LIBEXT =            .dll
  21. LIBS =            /nod dde4sbso
  22.  
  23. PBMDIR =            ../pbm
  24. INCLUDEPBM =    -I$(PBMDIR)
  25. DEFPBM =            $(PBMDIR)/pbm.h ../pbmplus.h
  26. DEFLIBPBM =        $(PBMDIR)/libpbm.h
  27.  
  28. DEFPGM =            pgm.h $(DEFPBM)
  29. INCL =            -I.. $(INCLUDEPBM)
  30. ALLCFLAGS =        $(CFLAGS) $(INCL)
  31. LIBPGM =            libpgm$(LIBEXT)
  32. LIBPGMOBJS =    libpgm1$(OBJ) libpgm2$(OBJ)
  33.  
  34. .c.obj:
  35.     $(CC) $(ALLCFLAGS) -c $*.c
  36.  
  37. .obj.exe:
  38.     link386 $(LDFLAGS) $*,,, $(LIBS), pgm
  39.  
  40. PORTBINARIES =    fitstopgm$(EXE) fstopgm$(EXE) hipstopgm$(EXE) lispmtopgm$(EXE) \
  41.                     pgmbentley$(EXE) pgmenhance$(EXE) pgmhist$(EXE) pgmnorm$(EXE) \
  42.                     pgmoil$(EXE) pgmramp$(EXE) pgmtofits$(EXE) pgmtofs$(EXE) \
  43.                     pgmtolispm$(EXE) pgmtopbm$(EXE) psidtopgm$(EXE) rawtopgm$(EXE)
  44.  
  45. MATHBINARIES =    pgmcrater$(EXE) pgmedge$(EXE) pgmtexture$(EXE)
  46.  
  47. BINARIES =        $(PORTBINARIES) $(MATHBINARIES)
  48.  
  49. OBJECTS =        fitstopgm$(OBJ) fstopgm$(OBJ) hipstopgm$(OBJ) lispmtopgm$(OBJ) \
  50.                     pgmbentley$(OBJ) pgmenhance$(OBJ) pgmhist$(OBJ) pgmnorm$(OBJ) \
  51.                     pgmoil$(OBJ) pgmramp$(OBJ) pgmtofits$(OBJ) pgmtofs$(OBJ) \
  52.                     pgmtolispm$(OBJ) pgmtopbm$(OBJ) psidtopgm$(OBJ) rawtopgm$(OBJ) \
  53.                     pgmcrater$(OBJ) pgmedge$(OBJ) pgmtexture$(OBJ)
  54.  
  55. all:                lib binaries
  56.  
  57. binaries:        $(BINARIES)
  58.  
  59. $(BINARIES):    pgm.def
  60.  
  61. $(OBJECTS):        $(DEFPGM)
  62.  
  63. lib:                $(LIBPGM)
  64.  
  65. $(LIBPGM):        $(LIBPGMOBJS) libpgm.def
  66.     link386 $(LDFLAGS) $(LIBPGMOBJS), $@,, $(LIBS), libpgm
  67.  
  68. $(LIBPGMOBJS):    libpgm.h $(DEFPGM)
  69.     $(CC) $(ALLCFLAGS) -Ge- -c $*.c
  70.  
  71. libpgm2$(OBJ):    $(DEFLIBPBM)
  72.  
  73. pgmtopbm$(OBJ):    dithers.h
  74.